<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/head.jsp"%>
<script language="javascript" src="${ctxpath}/sample/db/DBManager.js"></script>
</head>
<body class="mainBody">
<form method="post" name="myform" id="myform" action="${ctxpath}/sample/DBManagerCtrl!execute.do" target="oprbottom">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="formTable">
    <tr>
        <td class="formTableL">&#160;</td>
        <td class="formTableC">
            <table id="logTab" align="center" width="100%" border="0" cellpadding="0" cellspacing="2" class="formTableCore">
                <tr>
                    <td class="formLabel">
                        <textarea id="sqlArea" name="sqlArea" cols="" rows="10" style="width:100%"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>
                        <button class="formButton" id="bExec" name="bExec" onclick="execDb()">执行</button>
                        <button class="formButton" id="btableDesc" name="btableDesc" onclick="tableDesc()">表结构</button>
                        <button class="formButton" id="btableData" name="btableData" onclick="tableData()">数据</button>
                        <button class="formButton" id="btableIndexes" name="btableIndexes" onclick="tableIndexes()">表索引</button>
                        <button class="formButton" id="btabSelSql" name="btabSelSql" onclick="genSql('select')">SELECT</button>
                        <button class="formButton" id="btabUpdSql" name="btabUpdSql" onclick="genSql('update')">UPDATE</button>
                        &nbsp;&nbsp;<span onclick="oprHelp()">说明</span>
                    </td>
                </tr>
            </table>
        </td>
        <td class="formTableR">&#160;</td>
    </tr>
    <tr>
        <td class="formTableLB"></td>
        <td class="formTableB"></td>
        <td class="formTableRB"></td>
        <!-- 0:执行文本域的语句; 1:查询表结构; 2:查询索引; 3:查看执行计划 -->
        <input id="execType" name="execType" type="hidden" value="0" />
        <input id="execSql" name="execSql" type="hidden" value="" /><!-- 要执行的SQL -->
        <input id="tableName" name="tableName" type="hidden" value="" /><!-- 表名 -->
    </tr>
</table>
</form>
</body>
</html>
